public class Test {
	
	public static void main(String[] args) {
		
		int[] t0 = {0};
		int[] t1 = {1};
		
		System.out.println("out");
		display(t0, t1); 
		swap(t0, t1);
		System.out.println("out");
		display(t0, t1);
	}
	
	public static void swap(int[] t0, int[] t1) {
		int[] tmp = {t0[0]};
		t0[0] = t1[0];
		t1[0] = tmp[0];
	}
	
	public static void display(int[] a, int[] b) {
		System.out.println(a[0] + " , " + b[0]);
	}
}
